<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script>
    /**
     * 基本数据类型保存值
     * 引用数据类型保存内存地址 
     * */
    var a = 123;
    var b = a; 
    a++;
    console.log(a)
    console.log(b)
    var obj  = new Object();
    obj.name = "张三";
    obj.name = "历史";
    delete obj.name;
    var obj2 = obj;
    console.log(obj.name);
    console.log(obj2.name);
    //使用对象字面量创建对象
    var a = { 
        neme: "zhangsan", 
        age: 12, 
        gender: "nan"
    };
    console.log(a)
</script>
<body>
    
</body>
</html>